<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>links</title>
		<link type="text/css" rel="stylesheet" href="inc/tabs.css" />
	</head>

	<body>
		<div>
	<? include ('inc/header.php'); ?>
	<? include ('inc/nav.php'); ?>
	
	<?
		$name = 'Moshe';
		
		//echo "Hello $name";
		
		$myArr = array('Hello', 'World');
		$myArr[1] = 'Planet';
		$myArr[] = 'Earth';
		$myArr[] = '.';
		
		$table = array('id' => 1, 'role' => 'admin');
		$table["name"] = 'Moshe';
		$table["job"] = 'Rabbi';
		$table["email"] = 'rabbi@newpaltz.edu';
		
		$str = "Hello $table[name] you are a wonderful $table[job] I will contact you at $table[email]";
	?>
			<div>
				<? foreach($myArr as $item): ?>
				<?=$item?>
				<? endforeach; ?>
			</div>
			<div>
				<table border="2">
				<? foreach($table as $key => $item): ?>
					<tr>
						<td><?=$key?></td>
						<td><?=$item?></td>
					</tr>
				<? endforeach; ?>					
				</table>
				
				<?=$str?>
			</div>

			<footer>
				<p>
					&copy; Copyright  by New Paltz
				</p>
			</footer>
		</div>
	</body>
</html>
